﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2024-12-29 19:04
    /// 描 述：CourseRegistration实体类
    /// </summary>
    [Table("course_registration")]
    public class CourseRegistrationEntity : BaseEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? user_id { get; set; }
        /// <summary>
        /// 课程ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? course_id { get; set; }
        /// <summary>
        /// 订单ID
        /// </summary>
        /// <returns></returns>
        public string order_id { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        /// <returns></returns>
        public string name { get; set; }
        /// <summary>
        /// 性别(0-女,1-男)
        /// </summary>
        /// <returns></returns>
        public byte? gender { get; set; }
        /// <summary>
        /// 身高(cm)
        /// </summary>
        /// <returns></returns>
        public decimal? height { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        /// <returns></returns>
        public int? age { get; set; }
        /// <summary>
        /// 体重(kg)
        /// </summary>
        /// <returns></returns>
        public decimal? weight { get; set; }
        /// <summary>
        /// 电话号码
        /// </summary>
        /// <returns></returns>
        public string phone { get; set; }
        /// <summary>
        /// 状态(0-待支付,1-已支付,2-已取消,3-已完成)
        /// </summary>
        /// <returns></returns>
        public byte? status { get; set; }
        /// <summary>
        /// 报名费用
        /// </summary>
        /// <returns></returns>
        public decimal? fee { get; set; }
        /// <summary>
        /// 支付时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? payment_time { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        /// <returns></returns>
        public string remark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? create_time { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? update_time { get; set; }
        /// <summary>
        /// 是否删除(0-否,1-是)
        /// </summary>
        /// <returns></returns>
        public byte? deleted { get; set; }
    }
}
